import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/reagentClass/` + url, ...arg)

/**
 * bizReagentClassApi接口管理器
 *
 * @author levin
 * @date  2023/02/22 13:11
 **/
export default {
	//分页
	bizReagentClassPage(data) {
		return request('page', data)
	},
	//提交
	bizReagentClassSubmitForm(data, edit = false) {
		return request(edit ? 'add' : 'edit', data)
	},
	//删除
	bizReagentClassDelete(data) {
		return request('delete', data)
	},
	//详情
	bizReagentClassDetail(data) {
		return request('detail', data)
	},
	//列表
	bizReagentClassList(data) {
		return request('list', data)
	},
	//导出模板
	bizReagentClassExportTmpl(data) {
		const options = {
			responseType: 'blob'
		}
		return request('exportTmpl', data, 'post', options)
	},
	//导入模板
	bizReagentClassUpload(data) {
		return request('upload', data)
	}
}
